package br.com.massai.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;

@Entity
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
@Table(name = "CATEGORY_LEVEL")
@NamedQueries({
	@NamedQuery(name = "CategoryLevel.find", query = "SELECT c FROM CategoryLevel c")
})
public class CategoryLevel extends GenericEntity {

	private static final long serialVersionUID = -5617040998973097604L;

	@Id
	@SequenceGenerator(name = "seqCategoryLevel", sequenceName = "seq_category_level", allocationSize = 1)
	@GeneratedValue(generator = "seqCategoryLevel", strategy = GenerationType.SEQUENCE)
	private Long id;

	@Column(name = "NAME_CATEGORY", length = 100, nullable = false, columnDefinition = "VARCHAR(100)")
	private String nameCategory;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNameCategory() {
		return nameCategory;
	}

	public void setNameCategory(String nameCategory) {
		this.nameCategory = nameCategory;
	}
}